/*
 * Motor_Driver.h
 *
 * Created: 4/5/2013 9:08:52 AM
 *  Author: Parag
 */ 

#ifndef MOTOR_DRIVER_H_
#define MOTOR_DRIVER_H_

#include <avr/io.h>
#include <stdbool.h>
#include <avr/sfr_defs.h>



#define P_Solenoid                      PD0     // Solenoid
#define P_Invert                        PD1		 // Motor_Invert
#define P_Pump                          PD3     // Water Pump
#define DDR_Motor						DDRD	
#define PORT_Motor						PORTD


void MotorInit();
void MotorOnForward();
void MotorOnBack();
void MotorOff();
bool StatusProblem();
void Motor_Adjust();

#endif /*  MOTOR_DRIVER_H_ */